package crmsystem.com.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PastOrPresent;

/**
 * 
 * 
 * @author zhugaowei
 * @email 1912431877@qq.com
 * @date 2021-01-07 12:48:11
 */
@Data
@TableName("user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户编号
	 */
	@NotNull
	@TableId
	private Integer uId;
	/**
	 * 用户名
	 */
	@NotEmpty
	private String uUsername;
	/**
	 * 管理员分类
	 */
	@NotEmpty
	private String uAdminsort;
	/**
	 * 员工姓名
	 */
	@NotEmpty
	private String uEmpname;
	/**
	 * 部门名称
	 */
	@NotEmpty
	private String uDeptname;
	/**
	 * 创建日期
	 */
	@NotNull
	@PastOrPresent
	private Date uCreatdate;
	/**
	 * 授权状态
	 */
	@NotEmpty
	private String uAuthorstatus;
	/**
	 * 用户密码
	 */
	@NotEmpty
	private String uPassword;

}
